// let oli=document.querySelectorAll(".header-l li");
let oem=document.querySelector(".middle-2 em");
let otxt=document.querySelector(".middle-1 h2");
let op=document.querySelector(".middle-1 .al");
let otk=document.querySelector(".middle-1 .txt");
console.log(op);
// console.log(location.search);
let str=location.search.slice(6);
console.log(str);
	$.ajax({
		url:"./js/1.php",
		type:"post",
		data:{
			id:str
		},
		success:function(resText){
			  console.log(resText);
		 let t=JSON.parse(resText).data[0];
		 console.log(t);
		 let k=t.img;
		 // console.log(k);
		oem.style.backgroundImage="url("+k+")";
		 otxt.innerHTML=t.txt;
		 op.innerHTML=t.tt;
		 otk.innerHTML=t.text;
		 console.log(otk);
		}
	});

